package com.zenith.edu.po.dto;

import com.zenith.common.base.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "EduResourceDTO", description = "课程资源DTO")
public class EduResourceDTO extends BaseDTO {
    
    @Schema(description = "主键ID")
    private Long id;
    
    @Schema(description = "所属课程ID")
    private Long courseId;
    
    @Schema(description = "所属章节ID（可选）")
    private Long chapterId;
    
    @Schema(description = "资源类型：1-视频 2-音频 3-文档 4-图片 5-附件")
    private Integer resType;
    
    @Schema(description = "资源标题")
    private String title;
    
    @Schema(description = "文件存储Key/OSS路径")
    private String fileKey;
    
    @Schema(description = "时长（秒），视频/音频专用")
    private Integer duration;
    
    @Schema(description = "文件大小（字节）")
    private Long size;
    
    @Schema(description = "文件MD5，秒传/去重")
    private String md5;
    
    @Schema(description = "状态：1-正常 2-禁用")
    private Integer status;
}